package com.aplink.generic.util.objectrule;

import com.aplink.generic.pojo.GenericAttribute;

public class ValueContainRule extends ValueBaseRule {

    public ValueContainRule() {
        this.value = "";
    }

    public ValueContainRule( String mValue ) {
        this.value = mValue;
    }

    @SuppressWarnings("rawtypes")
    @Override
    public boolean checkRule( GenericAttribute att ) {
        if ( att.getValue().toString().contains( this.value ) == true ) {
            return true;
        }
        return false;
    }

}
